<template>
    <div class="add">
        品牌名称:
        <input type="text" placeholder="请输入搜索条件" v-model="searchVal" />
    </div>
</template>
<script>
export default {
    data() {
        return {
            searchVal: ""
        }
    },
    watch:{
        searchVal(newVal){
            this.$bus.$emit('search',newVal)
        }
    }
}
</script>